/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tdd;

import java.util.Stack;

/**
 *
 * @author eyrie.chen
 */
public class Push implements Command{

    String data;

    Push(String string) {
        this.data = string;
    }

    public void invoke(Stack stack) {
        stack.push(data);
    }
    @Override
    public String toString(){
        return "CMD push \""+data+"\"";
    }


}
